package com.inforich.projectManage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.inforich.common.core.domain.BaseParamEntity;
import com.inforich.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.inforich.common.core.domain.BaseEntity;

/**
 * 项目垃圾明细对象 br_project_rubbish_detail
 *
 * @author hjm
 * @date 2022-10-30
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@TableName("br_project_rubbish_detail")
public class ProjectRubbishDetail extends BaseParamEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 主键
   */
  @TableId(type = IdType.AUTO)
  private Integer id;

  /**
   * 项目ID
   */
  private String projectId;
  @Excel(name = "所属项目")
  @TableField(exist = false)
  private String projectName;

  /**
   * 阶段
   */
  @Excel(name = "阶段", dictType = "rubbish_stage")
  private String rubbishStage;

  /**
   * 垃圾类型ID
   */
  private Long rubbishTypeId;
  @Excel(name = "垃圾类型")
  @TableField(exist = false)
  private String rubbishTypeName;

  /**
   * 再生材料
   */
  @Excel(name = "再生材料")
  private String recycleType;

  /**
   * 去向地址
   */
  @Excel(name = "去向地址")
  private String destinationAddress;

  /**
   * 数量
   */
  @Excel(name = "数量")
  private BigDecimal rubbishNumber;

  /**
   * 占比
   */
  @Excel(name = "占比%")
  private BigDecimal rubbishRatio;

  /**
   * 创建时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd")
  @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
  private Date createdDate;

  /**
   * 修改时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd")
  @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
  private Date modifiedDate;


}